
package cn.edu.scau.cmi.hombio.dao;

import cn.edu.scau.cmi.hombio.domain.Unit;

import java.util.Set;

import org.skyway.spring.util.dao.JpaDao;

import org.springframework.dao.DataAccessException;

/**
 * DAO to manage Unit entities.
 * 
 */
public interface UnitDAO extends JpaDao<Unit> {

	/**
	 * JPQL Query - findUnitById
	 *
	 */
	public Unit findUnitById(Integer id) throws DataAccessException;

	/**
	 * JPQL Query - findUnitById
	 *
	 */
	public Unit findUnitById(Integer id, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findUnitByMemoContaining
	 *
	 */
	public Set<Unit> findUnitByMemoContaining(String memo) throws DataAccessException;

	/**
	 * JPQL Query - findUnitByMemoContaining
	 *
	 */
	public Set<Unit> findUnitByMemoContaining(String memo, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findAllUnits
	 *
	 */
	public Set<Unit> findAllUnits() throws DataAccessException;

	/**
	 * JPQL Query - findAllUnits
	 *
	 */
	public Set<Unit> findAllUnits(int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findUnitByNameContaining
	 *
	 */
	public Set<Unit> findUnitByNameContaining(String name) throws DataAccessException;

	/**
	 * JPQL Query - findUnitByNameContaining
	 *
	 */
	public Set<Unit> findUnitByNameContaining(String name, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findUnitByPrimaryKey
	 *
	 */
	public Unit findUnitByPrimaryKey(Integer id_1) throws DataAccessException;

	/**
	 * JPQL Query - findUnitByPrimaryKey
	 *
	 */
	public Unit findUnitByPrimaryKey(Integer id_1, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findUnitByMemo
	 *
	 */
	public Set<Unit> findUnitByMemo(String memo_1) throws DataAccessException;

	/**
	 * JPQL Query - findUnitByMemo
	 *
	 */
	public Set<Unit> findUnitByMemo(String memo_1, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findUnitByName
	 *
	 */
	public Set<Unit> findUnitByName(String name_1) throws DataAccessException;

	/**
	 * JPQL Query - findUnitByName
	 *
	 */
	public Set<Unit> findUnitByName(String name_1, int startResult, int maxRows) throws DataAccessException;

}